package com.example.pattern.chain;

/**
 * 抽象处理器类
 *
 * @author FM_南风
 * @date 2024/7/5
 */
abstract class Handler {
    protected Handler successor;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public abstract void handleRequest(Request request);
}
